-- GENERATED SPELL FOR [Warp Hunter] --


function spell0_18465(pUnit, Event) --@Phase Burst,Self--
pUnit:FullCastSpellOnTarget(32939,pUnit)
pUnit:RegisterEvent('Sorts_18465', 602, 1)
end

function spell1_18465(pUnit, Event) --@Phasing Invisibility,Self--
pUnit:FullCastSpellOnTarget(32942,pUnit)
pUnit:RegisterEvent('Sorts_18465', 0, 1)
end

function spell2_18465(pUnit, Event) --@Pounce,n/a--
pUnit:FullCastSpellOnTarget(39449,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18465', 596, 1)
end

function Sorts_18465(pUnit, Event)
local choix_sorts_18465 = math.random(0, 2)
if choix_sorts_18465 == 0 then
pUnit:RegisterEvent('spell0_18465', 1, 1)
end
if choix_sorts_18465 == 1 then
pUnit:RegisterEvent('spell1_18465', 1, 1)
end
if choix_sorts_18465 == 2 then
pUnit:RegisterEvent('spell2_18465', 1, 1)
end
end

function mob18465_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18465', math.random(1500, 3000), 1)
end

function mob18465_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18465_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18465_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18465, 1, 'mob18465_Action')
RegisterUnitEvent(18465, 2, 'mob18465_Leave')
RegisterUnitEvent(18465, 3, 'mob18465_Kill')
RegisterUnitEvent(18465, 4, 'mob18465_Die')
